# !/usr/bin/env python
# -*- coding: utf-8 -*-


#压缩文件
import zipfile

class MyZip:
    def __init__(self):
        pass

    @staticmethod
    def compress(files, zip_name):
        zp = zipfile.ZipFile(zip_name, 'w', zipfile.ZIP_DEFLATED)
        for file in files:
            zp.write(file)
        zp.close()


# if __name__ == '__main__':
#     ZIP = MyZip()
#     #files = ['AlterID.exe', './report.txt']
#     CompressFiles = ['AlterID.exe']
#     ZipFile = 'AlterID.exe.zip'
#     ZIP.compress(CompressFiles, ZipFile)